﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Studio77.GuessTheWords2.Util
{
    public class Misc
    {
        public static int GetStar(double rate)
        {
            int result = 0;
            if (rate < 0.1f)
            {
                result = 0;
            }
            else if (rate < 0.4f)
            {
                result = 1;
            }
            else if (rate < 0.8f)
            {
                result = 2;
            }
            else
            {
                result = 3;
            }
            return result;

        }
    }
}
